package com.test.mcdonald;

import com.test.mcdonald.GlobalSettings.TypeMenu;;

public class Dish {
	TypeMenu[] dishTypes;

	public Dish() {
		int numTypes = (int)(Math.random()*GlobalSettings.SIZE_DISH);
		dishTypes = new TypeMenu[numTypes];
		for(int i=0; i<numTypes; i++) {
			switch ((int)(Math.random()*GlobalSettings.TypeMenu.values().length)) {
			case 0:
				dishTypes[i] = GlobalSettings.TypeMenu.CHEESEBURGER;
				break;
			case 1:
				dishTypes[i] = GlobalSettings.TypeMenu.CHIPPED_POTATO;
				break;
			case 2:
				dishTypes[i] = GlobalSettings.TypeMenu.HAMBURGER;
				break;
			case 3:
				dishTypes[i] = GlobalSettings.TypeMenu.ICECREAM;
				break;
			default:
				dishTypes[i] = GlobalSettings.TypeMenu.MACCHICKEN;
				break;
			}
			
		}
	}
	
}
